#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main()
{
	int age = 0;
	scanf("%d", &age);
	long long second = age * 3.156e7;
	printf("%lld\n", second);
	return 0;
}